<?php
$somecontent = $somecontent . "</pie>";

//$somecontent = $somecontent . "<pie><slice title=\"iPhone\" color=\"#000021\">1</slice><slice title=\"HTC\">2</slice></pie>";

$var=fopen("$filename","w+");
fwrite($var, "$somecontent");
fclose($var);
		
		

?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Statistiche Applicazione RMob</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen, tv, projection" />
</head>
<body>

	<div align="center">
	<img src="titolo.jpg" width="400" height="67">
	<br><br>
	<table border="0" width="900">
		<tr>
			<td rowspan="2">
				<div align="top">
				<table>
					<tr>
						<td>
							<a href="device.php">Dispositivi</a>
						</td>
					</tr>
					<tr>
						<td>
							<a href="so.php">Sistemi Operativi</a>
						</td>
					</tr>
					<tr>
						<td>
							<a href="service.php">Servizi</a>
						</td>
					</tr>	
					<tr>
						<td>
							<a href="mappa.php">Servizi (Mappa)</a>
						</td>
					</tr>
					<tr>
						<td>
							<a href="modal.php">Modalit&agrave;</a>
						</td>
					</tr>
					<tr>
						<td>
							<a href="http://151.100.62.97:5478/phpmyadmin" target="_blank">Data Base</a>
						</td>
					</tr>
				</table>
				</div>
			</td>
			
			<td>
			<div align="center">Panoramica sui <?php echo $pagina;?> utilizzati</div>
			</td>
		
		</tr>
		<tr>
			<td>
			
				<script type="text/javascript" src="ampie/swfobject.js"></script>
					<div id="flashcontent">
						<strong>You need to upgrade your Flash Player</strong>
					</div>
				
					<script type="text/javascript">
						// <![CDATA[		
						var so = new SWFObject("ampie/ampie.swf", "ampie", "570", "399", "8", "#FFFFFF");
						so.addVariable("path", ".");
						so.addVariable("settings_file", encodeURIComponent("graph1set.xml"));
						so.addVariable("data_file", encodeURIComponent("graph1dat.xml"));
						so.write("flashcontent");
						// ]]>
					</script>
			</td>

		</tr>	
	</table>
	</div>
</body>
</html>

			
<?
/*

$sql="SELECT * FROM Utenti WHERE Device LIKE 'iPhone%';";
$query=mysql_query($sql);
$user_iphone = mysql_num_rows($query);

$sql="SELECT * FROM Utenti WHERE Device LIKE 'HTC%';";
$query=mysql_query($sql);
$user_htc = mysql_num_rows($query);

$sql="SELECT * FROM Utenti WHERE Device LIKE 'Blackberry%';";
$query=mysql_query($sql);
$user_blackberry = mysql_num_rows($query);
*/



?>